package com.wsd.smartcarwasher.controller;


import com.wsd.smartcarwasher.domain.Admin;
import com.wsd.smartcarwasher.util.ShiroUtils;


public class BaseController {
	public Admin getUser() {
		return ShiroUtils.getUser();
	}

	public long getUserId() {
		return getUser().getId();
	}

	public String getUsername() {
		return getUser().getNickname();
	}
}